import {ResourceProxy} from 'ProxyPattern/Proxy';
import {IResource} from './Resource';


import separate from '../patternSeparator';

separate('代理模式');

let resource:IResource = new ResourceProxy();
resource.fetch(10);
let pic:string = resource.fetch(101);

console.log('获取到的资源图片：%c', `background:url(${pic}) no-repeat;padding:10px 18px;font-size:1px;line-height:30px`);